// 全局组件
import SvgIcon from '@/components/SvgIcon/index.vue'
import { Component } from 'vue'

const allGloalComponent: { [key: string]: Component } = {
  SvgIcon,
}

export default {
  //必须要有install
  install(app: { component: (arg0: string, arg1: Component) => void }) {
    Object.keys(allGloalComponent).forEach((key) => {
      app.component(key, allGloalComponent[key])
    })
  },
}
